package cachealgorithm

import (
	"time"
)

type Value interface {
	Len() int
}

// CacheAlgorithm 定义缓存算法的接口
type CacheAlgorithm interface {
	Get(key string) (value Value, ok bool)
	Add(key string, value Value, expire time.Time)
	Remove(key string)
	Len() int
}
